package com.bci.pwtz.mysql.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.Kzsxsbzp;

public interface KzsxsbzpMapper {
    int deleteByPrimaryKey(String id);

    int insert(Kzsxsbzp record);

    int insertSelective(Kzsxsbzp record);

    Kzsxsbzp selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Kzsxsbzp record);

    int updateByPrimaryKey(Kzsxsbzp record);
    int deleteById(@Param("id")String id,@Param("lastmodifiedtime")Date lastmodifiedtime);
    List<Kzsxsbzp> selectDeviceList(@Param("companyid") Long companyid,@Param("companyids")String[] companyids,@Param("portalType")int portalType,@Param("medLineCodes")String[] medLineCodes,@Param("beginTime") String beginTime,@Param("endTime") String endTime,
            @Param("beginIndex") int beginIndex, @Param("pageSize") int pageSize);
    int selectDeviceCount(@Param("companyid") Long companyid,@Param("companyids")String[] companyids,@Param("portalType")int portalType,@Param("medLineCodes")String[] medLineCodes,@Param("beginTime") String beginTime,@Param("endTime") String endTime);
    
    int selectMaxIndexNumber(@Param("deviceid")String deviceid,@Param("phototype")String phototype);
    
    List<Kzsxsbzp> selectDeviceByDeviceid(@Param("companyid")long companyid,@Param("deviceid")String deviceid);
    
    List<Kzsxsbzp> selectDeviceByStatus(@Param("deviceid")String deviceid,@Param("status")int status);
}